<?php

return array(
    'preLoad' => array(
        'app' => array(
            'BAppCommon' => array(
            )
        )
    ),
    'appMeta' => array(
        'appName' => 'wePage',
        'description' => 'wePage is an application for publish and manage wePage',
        'operations' => array(
            'client' => array('displayName' => '客户',
                //'class'=>'BSBookingFacilityOperation',
                'permit' => array(BPermit::AllowAccess => BRole::All_Roles)                
            ),
            'manage' => array('displayName' => '管理',
                'permit' => array(
                    BPermit::AllowAccess => array(BRole::Role_Space_Admin,
                        BRole::Role_Space_Member)
                ),
                /*
                'startScreen' => array(
                    'views' => array(
                        'eventHome' => 'manage')
                )
                 * 
                 */
            ),
            'admin' => array('displayName' => '设置',
                'permit' => array(BPermit::AllowAccess => BRole::Role_Space_Admin),
                /*
                'startScreen' => array(
                    'views' => array(
                        'eventHome' => 'admin')
                )
                 * 
                 */
            )          
        )
    /* means visible to all Space except personal Space 
     */
    ),
    'db' => array(
        'connection' => array(
            'default' => 'wePage',
            'localdb' => array(
                'connectString' => 'mysql:host=localhost;dbname=bilynapp',
                'user' => 'blndba',
                'password' => 'blnpwd'
            ),
            'wePage' => array(
                'connectionString' => 'mysql:host=localhost;dbname=wePage',
                'emulatePrepare' => true,
                'username' => 'test',
                'password' => 'password',
                'charset' => 'utf8',
                'tablePrefix' => 'tbl_',
                'enableParamLogging' => true,
            ),
        )
    )
);
?>
